package com.qiqidream.admin.system.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qiqidream.admin.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.*;

/**
 * 系统管理-部门表
 * @author QiQiDream
 * @since 2019/12/11 20:30
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_department")
public class Department extends BaseEntity {
    /**
     * 父级id
     */
    private Long parentId;
    /**
     * 名称
     */
    private String name;
    /**
     * 是否启用
     */
    @TableField("is_enabled")
    private Boolean enabled;
}
